package com.baizhi.cmfzdemo.appControlle;

import com.baizhi.cmfzdemo.entity.CmfzAlbum;
import com.baizhi.cmfzdemo.service.CmfzAlbumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by 54433 on 2019/4/12.
 */
@RestController
@RequestMapping("/album")
public class AppCmfzAlbumController {
    @Autowired
    private CmfzAlbumService cmfzAlbumService;

    @RequestMapping("/showAllCmfzAlbum")
    public List<CmfzAlbum> showAllCmfzAlbum(){
        return cmfzAlbumService.showAllCmfzAlbum();
    }
}
